package com.hpeng.sys.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;


@Entity
@Table(name = "ASSETCARDBOOK")
public class AssetCardBook implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private String acbid;	//编号
	private String operator;	//操作人
	private String operatename;	//操作名称
	private Date operatedate;	//操作日期
	private String operatereason;//操作原因
	private String checkreason;	//审批原因
	private String olduser;		//原使用人
	private String newuser;		//现使用人
	private String acprimarystatus;	//主状态
	private String acsecondstatus;	//副状态
	private String olddepartment;	//原部门
	private String newdepartment;	//现部门
	private String operaterole;//操作角色
	private String dealresult;//处理结果
	private String dealreason;//处理意见
	private String operatorStatus;
	private AssetCard card;		//物品
	
	public AssetCardBook() {
	}

	@Id
	@GeneratedValue(generator="system-uuid")
	@org.hibernate.annotations.GenericGenerator(name="system-uuid",strategy="uuid")
	public String getAcbid() {
		return this.acbid;
	}

	public void setAcbid(String acbid) {
		this.acbid = acbid;
	}
	

	//资产卡片台帐与资产卡片的关系
	@ManyToOne(fetch = FetchType.LAZY)
	@NotFound(action=NotFoundAction.IGNORE)
	@JoinColumn(name = "ACID")
	public AssetCard getCard() {
		return this.card;
	}

	public void setCard(AssetCard card) {
		this.card = card;
	}

	@Column(name = "OPERATOR", length = 50)
	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column(name = "OPERATENAME", length = 50)
	public String getOperatename() {
		return this.operatename;
	}

	public void setOperatename(String operatename) {
		this.operatename = operatename;
	}

	@Column(name = "OPERATEDATE", length = 7)
	public Date getOperatedate() {
		return this.operatedate;
	}

	public void setOperatedate(Date operatedate) {
		this.operatedate = operatedate;
	}

	@Column(name = "OPERATEREASON", length = 500)
	public String getOperatereason() {
		return this.operatereason;
	}

	public void setOperatereason(String operatereason) {
		this.operatereason = operatereason;
	}

	@Column(name = "CHECKREASON", length = 500)
	public String getCheckreason() {
		return this.checkreason;
	}

	public void setCheckreason(String checkreason) {
		this.checkreason = checkreason;
	}

	@Column(name = "OLDUSER", length = 20)
	public String getOlduser() {
		return this.olduser;
	}

	public void setOlduser(String olduser) {
		this.olduser = olduser;
	}

	@Column(name = "NEWUSER", length = 20)
	public String getNewuser() {
		return this.newuser;
	}

	public void setNewuser(String newuser) {
		this.newuser = newuser;
	}

	@Column(name = "ACPRIMARYSTATUS", length = 50)
	public String getAcprimarystatus() {
		return this.acprimarystatus;
	}

	public void setAcprimarystatus(String acprimarystatus) {
		this.acprimarystatus = acprimarystatus;
	}

	@Column(name = "ACSECONDSTATUS", length = 100)
	public String getAcsecondstatus() {
		return this.acsecondstatus;
	}

	public void setAcsecondstatus(String acsecondstatus) {
		this.acsecondstatus = acsecondstatus;
	}
	@Column(name = "OLDDEPARTMENT", length = 20)
	public String getOlddepartment() {
		return olddepartment;
	}

	public void setOlddepartment(String olddepartment) {
		this.olddepartment = olddepartment;
	}
	@Column(name = "NEWDEPARTMENT", length = 20)
	public String getNewdepartment() {
		return newdepartment;
	}

	public void setNewdepartment(String newdepartment) {
		this.newdepartment = newdepartment;
	}
	public String getOperaterole() {
		return operaterole;
	}

	public void setOperaterole(String operaterole) {
		this.operaterole = operaterole;
	}

	public String getDealresult() {
		return dealresult;
	}

	public void setDealresult(String dealresult) {
		this.dealresult = dealresult;
	}

	public String getDealreason() {
		return dealreason;
	}

	public void setDealreason(String dealreason) {
		this.dealreason = dealreason;
	}
	public String getOperatorStatus() {
		return operatorStatus;
	}

	public void setOperatorStatus(String operatorStatus) {
		this.operatorStatus = operatorStatus;
	}

}